class A {
    public int A(int a) {
        return 1;
    }
    public int B() {
        this.A(5);
        return 1;
    }
}


public class Test1 {

    
    public int aMethod(){
        //static int i = 0;//Java当中不允许定义局部的静态变量
        int i = 0;
        i++;
        return i;
    }
    public static void main(String args[]){
        Test1 test = new Test1();
        test.aMethod();
        int j = test.aMethod();
        System.out.println(j);
    }


    /*private float f = 1.0f;
    int m = 12;
    static int n = 1;
    public static void main(String args[]){
        Test1 t = new Test1();
        Test1.n = 0;
    }*/


    /*static boolean Paddy = true;
    public static void main(String args[]){
        System.out.println(Paddy);
    }*/

    /*static int cnt = 6;//6
    static{
        cnt += 9;//cnt = cnt + 9    cnt = 6 + 9 = 15
    }
    public static void main(String[] args){
        System.out.println("cnt = " + cnt);//5
    }
    static{
        cnt /=3;//cnt = cnt / 3   cnt = 15 / 3 = 5
    }*/
}


/*class Test {
    public String toString() {
        System.out.print("aaa");
        return "bbb";
    }


    public static void main(String[] args) {
        Test test = new Test();
        System.out.println(test);
    }
}*/






